package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供应商管理对象 phg_supplier
 * 
 * @author CFL
 * @date 2024-04-28
 */
public class PhgSupplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 供应商id */
    private Long id;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String name;

    /** 供应商编码 */
    @Excel(name = "供应商编码")
    private String supSn;

    /** 供应商类型 */
    @Excel(name = "供应商类型")
    private Integer supType;

    /** 供应商状态 */
    @Excel(name = "供应商状态")
    private Integer supState;

    /** 联系人 */
    @Excel(name = "联系人")
    private String conName;

    /** 联系人电话 */
    @Excel(name = "联系人电话")
    private String conPerson;

    /** 联系人地址 */
    @Excel(name = "联系人地址")
    private String address;

    /** 逻辑删除;0：存在；1：删除 */
    private Integer isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSupSn(String supSn) 
    {
        this.supSn = supSn;
    }

    public String getSupSn() 
    {
        return supSn;
    }
    public void setSupType(Integer supType) 
    {
        this.supType = supType;
    }

    public Integer getSupType() 
    {
        return supType;
    }
    public void setSupState(Integer supState) 
    {
        this.supState = supState;
    }

    public Integer getSupState() 
    {
        return supState;
    }
    public void setConName(String conName) 
    {
        this.conName = conName;
    }

    public String getConName() 
    {
        return conName;
    }
    public void setConPerson(String conPerson) 
    {
        this.conPerson = conPerson;
    }

    public String getConPerson() 
    {
        return conPerson;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("supSn", getSupSn())
            .append("supType", getSupType())
            .append("supState", getSupState())
            .append("conName", getConName())
            .append("conPerson", getConPerson())
            .append("address", getAddress())
            .append("isDeleted", getIsDeleted())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedDate", getUpdatedDate())
            .append("remark", getRemark())
            .toString();
    }
}
